(defproject db-explorer "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :source-paths ["src/clj" "src/cljs"]
  :ring {:handler db-explorer.server/handler}
  :plugins [[lein-ring "0.12.4"]
            [lein-figwheel "0.5.16"]
            [lein-cljsbuild "1.1.7"]
            [lein-doo "0.1.8"]]
  :dependencies [[org.clojure/clojure "1.9.0"]
                 [ring/ring-core "1.7.0-RC1"]
                 [compojure "1.6.1"]
                 [clj-xmemcached "0.4.0"]
                 [hiccup "1.0.5"]

                 ;; cljs
                 [org.clojure/clojurescript "1.10.339"]
                 [cljsjs/antd "3.7.1-0"]
                 [cljsjs/react "16.2.0-3"]
                 [antizer "0.2.2" :exclusions [cljsjs/antd]]
                 [reagent "0.8.0-alpha2" :exclusions [cljsjs/react]]
                 [re-frame "0.10.3-beta1"]
                 [cljsjs/moment "2.17.1-1"]
                 [alandipert/storage-atom "2.0.1"]
                 ;; [com.bhauman/figwheel-main "0.1.9"]
                 [figwheel-sidecar "0.5.16"]
                 [cider/piggieback "0.3.9"]]
  :profiles {:dev {:dependencies [[ring/ring-devel "1.7.0-RC1"]]}}
  :clean-targets ^{:protect false} [:target-path "resources/public/js"]

  :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
  :cljsbuild {:builds [{:id "dev"
                        :source-paths ["src/cljs"]
                        :figwheel true
                        :compiler {:output-to "resources/public/js/main.js"
                                   :output-dir "resources/public/js/out"
                                   :asset-path "js/out"
                                   :source-map true
                                   :optimizations :none
                                   :main db-explorer.core}}]}
  :figwheel {:server-port 8001
             ;; :http-server-root "public"
             :ring-handler db-explorer.server/dev-app
             :css-dirs ["resources/public/css"]
             :server-logfile ".figwheel.log"
             :repl true})
